{template 'common/header'}
<ul class="nav nav-tabs">
    <li><a href="{php echo  $this->createWebUrl('power', array('name'=>'xm_housekeep_we7'));}">权限管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('addpower', array('name'=>'xm_housekeep_we7'));}">添加权限</a></li>
</ul>

<div class="clearfix">    
    <form id="theform" class="form form-horizontal" action="{php echo $this->createWebUrl('addpowerok', array('name'=>'xm_housekeep_we7'));}" method="post">
	<input type="hidden" name="id" value="{$uid}" />
        <div class="panel panel-default">
            <div class="panel-heading">
                {if $from == '1'}添加权限{else}查看权限{/if}
            </div>
            <div class="panel-body">
                <table class="table">
                	<tbody class="platform">
                    	<tr>
                        	<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="1" {if in_array('1',$power)} checked {/if}>管理员工</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="2" {if in_array('2',$power)} checked {/if}>查看员工</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="3" {if in_array('3',$power)} checked {/if}>服务管理</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="4" {if in_array('4',$power)} checked {/if}>查看服务</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="5" {if in_array('5',$power)} checked {/if}>派单操作</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="6" {if in_array('6',$power)} checked {/if}>完工操作</label>
                                </div>
                            </td>
                        </tr>
                        <tr>
                        	<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="7" {if in_array('7',$power)} checked {/if}>已完工</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="8" {if in_array('8',$power)} checked {/if}>查看订单</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="9" {if in_array('9',$power)} checked {/if}>管理常见问题</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="10" {if in_array('10',$power)} checked {/if}>查看常见问题</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="11" {if in_array('11',$power)} checked {/if}>管理服务说明</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="12" {if in_array('12',$power)} checked {/if}>查看服务说明</label>
                                </div>
                            </td>
                        </tr>
                        <tr>
                        	<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="13" {if in_array('13',$power)} checked {/if}>管理幻灯片</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="14" {if in_array('14',$power)} checked {/if}>查看幻灯片</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="15" {if in_array('15',$power)} checked {/if}>服务基础数据</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="16" {if in_array('16',$power)} checked {/if}>查看基础数据</label>
                                </div>
                            </td>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="17" {if in_array('17',$power)} checked {/if}>权限管理</label>
                                </div>
                            </td>
							<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="18" {if in_array('18',$power)} checked {/if}>提成列表</label>
                                </div>
                            </td>
						</tr>
						<tr>
                            <td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="19" {if in_array('19',$power)} checked {/if}>查看流水</label>
                                </div>
                            </td>
							<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="20" {if in_array('20',$power)} checked {/if}>发放提成</label>
                                </div>
                            </td>
							<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="21" {if in_array('21',$power)} checked {/if}>发放流水</label>
                                </div>
                            </td>
							<td>
                            	<div class="checkbox">
                                    <label><input type="checkbox" name="power[]" value="22" {if in_array('22',$power)} checked {/if}>用户列表</label>
                                </div>
                            </td>
							
							<td>
                            	
                            </td>
                        </tr>
                    </tbody>
                </table>
                <!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="1" {if in_array('1',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">管理员工</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="2" {if in_array('2',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看员工</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="3" {if in_array('3',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">服务管理</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="4" {if in_array('4',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看服务</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="5" {if in_array('5',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">派单</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="6" {if in_array('6',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">完工</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="7" {if in_array('7',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">已完工</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="8" {if in_array('8',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看订单</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="9" {if in_array('9',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">管理常见问题</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="10" {if in_array('10',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看常见问题</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="11" {if in_array('11',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">管理服务说明</label>
                </div>
				
				<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="12" {if in_array('12',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看服务说明</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="13" {if in_array('13',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">管理幻灯片</label>
                </div>
				
				<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="14" {if in_array('14',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看幻灯片</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="15" {if in_array('15',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">管理基础数据</label>
                </div>
				
				<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="16" {if in_array('16',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">查看基础数据</label>
                </div>-->
				
				<!--<div class="form-group">
                    <div class="col-sm-2 col-xs-12">
                        <input type="checkbox" name="power[]" value="17" {if in_array('17',$power)} checked {/if} class="form-control">
                    </div>
					<label class="col-xs-12 col-sm-3 control-label">权限管理</label>
                </div>-->
				
                
                
                {if $from == '1'}
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-md-2 col-lg-1">
                        <input name="submit" type="submit" value="保存" class="btn btn-primary btn-block" />
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                </div>
				{/if}
				
            </div>
			
		
        </div>
    </form>
</div>


{template 'common/footer'}